<?php
/**
 * 微信支付
 */
class WeixinresponAction{
    public function _initialize() {
        $this->error('访问非法');
        exit;
    }

    public function huifu(){
        $sVerifyMsgSig 		= $_GET['msg_signature'];

        $sVerifyTimeStamp 	= $_GET['timestamp'];

        $sVerifyNonce 		= $_GET['nonce'];

        $sVerifyEchoStr 	= $_GET['echostr'];

        $xiao=M('xiaof');
        $data=array('x1'=>$sVerifyMsgSig,'x2'=>$sVerifyTimeStamp,'x3'=>$sVerifyNonce,'x4'=>$sVerifyEchoStr);
        $xiao->add($data);

        ob_clean();
        echo $_GET['echostr'];
    }

}